public enum UsbChargerControl extends java.lang.Enum<UsbChargerControl> implements IEnumType
| Enum Constant and Description |
|---|
Charging |
NoCharging |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
java.lang.String |
toString() |
static UsbChargerControl |
valueOf(int code) |
static UsbChargerControl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UsbChargerControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsbChargerControl NoCharging
public static final UsbChargerControl Charging
public static UsbChargerControl[] values()
for (UsbChargerControl c : UsbChargerControl.values()) System.out.println(c);
public static UsbChargerControl valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in interface IEnumTypetoString in class java.lang.Enum<UsbChargerControl>public static UsbChargerControl valueOf(int code)